/*
 * typedefs.h
 *
 *  Created on: May 12, 2012
 *      Author: marchi
 */

#ifndef TYPEDEFS_H_
#define TYPEDEFS_H_

const int DIM=3;
const int XX=0;
const int YY=1;
const int ZZ=2;
enum {Slt, Sol, Ions};
const double unit_nm=0.1;

typedef int     	atom_id;	/* To indicate an atoms id         */

typedef float           real;

typedef real        	rvec[DIM];

typedef double       	dvec[DIM];

typedef real	    	matrix[DIM][DIM];


typedef struct {
  int nr;			/* The number of blocks			*/
  atom_id *index;		/* Array of indices (dim: nr+1) 	*/
  int nalloc_index;             /* The allocation size for index        */
} t_block;

#endif /* TYPEDEFS_H_ */
